/*
 * Carta.java
 *
 * Created on 6 de Novembro de 2006, 21:23
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package caraacara;

import java.io.Serializable;

/**
 *
 * @author HP
 */
public class Carta implements Serializable{
    
    private int id=0;
   
    /** Creates a new instance of Carta */
    public Carta(int ident) {
        ident %= 24;
        setId(ident);
    }  

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    public boolean equals(Carta aCarta) {
        return (this.id == aCarta.getId());
    }

}
